<?php

namespace app\admin\validate;


use \think\Validate;

/**
 *  国家地区字段验证
 */
class Region extends Validate
{
    protected $rule = [
        'country_id' => 'require|number'
    ];


    //定义验证提示
    protected $message = [
        'country_id.require' => 'region.countryIddRequire',
        'country_id.number' => 'region.countryIdNumber',
    ];

    //定义验证场景
    protected $scene = [
        'cityList' => ['country_id'],
        'area' => ['country_id']
    ];


}
